<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script src="../js/axios.js"></script>
		<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
		<script>
			let user = {
				name: '张三',
				age: 100,
				sex: '男'
			}
			axios.post("http://localhost:8090/saveUser",user)
				 .then(result => {
					 console.log(result.data)
				 })
				 
				 /**
				  * 利用restFul风格实现用户新增
				  * */
				  axios.post("http://localhost:8090/user/好生活/100/其他")
						.then(result => {
							console.log(result.data)
						})
						
						/**
										 * PUT 修改操作  传递对象使用最为频繁
										 */
										/* axios.put("url地址","修改的对象")
											 .then(result => {
												 console.log(result.data)
											 }) */
		</script>
	</body>
</html>
